><

Condition



The Condition action monitors the browser window for the occurrence or nonoccurrence of an event and triggers two other actions if the specified condition is true or false. You can choose between two conditions, the Timeout and Intersection actions (see Intersection and Timeout). This action runs without any viewer input, so it is best used with an action item in the head section of the page. (To monitor multiple occurrences in a session, set up an Idle action.)

To set up a Condition action:

1 Insert a Head Action in the head section of the page (see Setting up onload event actions).

2 Choose the Condition option from the Specials submenu of the Action menu at the top of the Action Inspector.

3 In the Condition tab, select the Intersection or Timeout action as the condition. (For instructions on using the Intersection or Timeout action, see Intersection and Timeout.)

4 In the True tab, specify an action to be executed when the specified condition evaluates to true.

5 In the False tab, specify an action to be executed when the specified condition evaluates to false. For example, if you have an image on your page, you can use the Set Image URL action (see Set Image URL) to swap the image content based on the result of the condition action.

6 Preview the action in a 4.0 browser.


Using Actions > Using Adobe GoLive actions > Condition